﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master"
    CodeBehind="DepartamentoNew.aspx.cs" Inherits="ELoje_web.DepartamentoNew" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">

        function validar() {
            var descDepartamento = document.getElementById("<%=txtDepartamento.ClientID %>").value;
            //if ((descDepartamento.trim).length <= 0) {
            //    alert('Por Favor Preencha os campos necessários!');
            //    return false;
            //}
            return true;
        }
    </script>
    <div class="cotent">
        <div id="siteMap">
            <div style="float: left;">
                <asp:Label ID="lblHistoryNavigation" runat="server"></asp:Label>
                <asp:Label ID="lblThisPage" runat="server"></asp:Label>
            </div>
            <div style="text-align: right">
                <asp:LinkButton runat="server" ID="lblBack" PostBackUrl="~/DepartamentoList.aspx">Voltar</asp:LinkButton>
            </div>
        </div>
        <hr class="hr1" />
        <div class="buttonBarTop">
            <div class="buttonCollor">
                <asp:Button runat="server" ID="btnCancelar" CssClass="buttonStyles" />
            </div>
            <div class="buttonCollor">
                <asp:Button runat="server" ID="btnSave" CssClass="buttonStyles" OnClientClick="return validar();" OnClick="btnSave_Click" />
            </div>
        </div>
        <div class="divCenter">
            <div class="linhaForm">
                <div class="form" style="width: 550px;">
                    <label>
                        Sigla
                    <asp:TextBox ID="txtSigla" MaxLength="7" Width="60" runat="server" autocomplete="off"></asp:TextBox>
                    </label>
                    <label>
                        Departamento
                    <asp:TextBox ID="txtDepartamento" MaxLength="20" Width="200" runat="server" autocomplete="off"></asp:TextBox>
                    </label>
                </div>
                <div class="linhaForm">
                    <label>
                        Medidas do Departamento
                    </label>
                </div>
            </div>
            <br />
            <div class="linhaForm">
                <asp:Repeater runat="server" ID="Repeater1">
                    <ItemTemplate>
                        <div class="floatLeft">
                            <asp:HiddenField ID="HiddenField1" Value='<%# DataBinder.Eval(Container.DataItem, "COD_MEDIDA") %>' runat="server" />
                            <asp:CheckBox ID="CheckBox1" Text='<%#  DataBinder.Eval(Container.DataItem, "MEDIDA") %>' runat="server" />
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <%--<div class="buttonsBar" style="width: 150px; float: none; margin-top: 15px;">
                <div class="buttonCollor floatLeft">
                    <asp:Button runat="server" ID="btnSave" CssClass="buttonStyles" OnClientClick="return validar();" OnClick="btnSave_Click" />
                </div>
            </div>--%>

        </div>
        <asp:HiddenField ID="hdnCodDepartamento" runat="server" Value="" />
        <asp:HiddenField ID="hdnStatus" runat="server" Value="" />
    </div>
    <div class="clear"></div>
</asp:Content>

